package com.example.design.factory.phone.abst.abstractfactory;

import com.example.design.factory.phone.abst.abstractproduct.ApplePhone;
import com.example.design.factory.phone.abst.abstractproduct.MAC;
import com.example.design.factory.phone.abst.abstractproduct.PC;
import com.example.design.factory.phone.abst.abstractproduct.Phone;

/**
 * @Description AppleFactory类：生产苹果手机的工厂（ConcreteFactory2）
 * @ClassName AppleFactory
 * @Author Administrator
 * @Date 2020/5/13 19:37
 * @Version 1.0.0
 */
public class AppleFactory implements AbstractFactory {
    @Override
    public Phone makePhone() {
        return new ApplePhone();
    }

    @Override
    public PC makePC() {
        return new MAC();
    }
}
